package cn.littlehx.myweb.service;

import cn.littlehx.myweb.domain.Captcha;
import com.baomidou.mybatisplus.extension.service.IService;

public interface ICaptchaService extends IService<Captcha> {
    /**
     * 产生并保存验证码
     * @param email
     * @return
     */
    String generateCaptcha(String email);

    /**
     * 判断验证码是否正确
     * @param email
     * @param captcha
     * @return
     */
    Boolean confirmCaptcha(String email,String captcha);
}
